#include<stdio.h>
int main()
{
	int n;
	scanf("%d", &n);
	int sum = 0;
	int i = 0;
	for(i=1;i<=n;i++)
	{
		sum+=i;
	}
	printf("sum = %d \n",sum);
	return 0;
}